#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:subprocess_module.py
@time:2021/08/19
"""
import subprocess
import ctypes

def test01():
    ...
    sub = subprocess.Popen('ls /Applications',shell=True, stdout= subprocess.PIPE, stderr= subprocess.PIPE)
    print(sub.stdout.read().decode('utf-8'))
    print(sub.stderr.read().decode('utf-8'))

if __name__ == '__main__':
    pass
    test01()
